package com.ruibang.glass.equipment.entity.device;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(value = "周期给油脂管理")
@TableName(value = "g_equipment_lubrication_management")
public class lubricationManagement extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "厂房")
    private String workshopId;
    @ApiModelProperty(value = "厂房名称")
    private String workshopName;
    @ApiModelProperty(value = "产线Id")
    private String productLineId;
    @ApiModelProperty(value = "产线名称")
    @TableField(exist = false)
    private String productLineName;
    @ApiModelProperty(value = "区域Id")
    private String areaId;
    @ApiModelProperty(value = "区域名称")
    private String areaName;
    @ApiModelProperty(value = "设备Id")
    private String deviceId;
    @ApiModelProperty(value = "设备名称")
    private String deviceName;
    @ApiModelProperty(value = "周期项目")
    private String periodicProject;
    @ApiModelProperty(value = "检查内容")
    private String inspectionContent;
    @ApiModelProperty(value = "检查标准")
    private String standardReference;
    @ApiModelProperty(value = "周期")
    private Float periodicity;
    @ApiModelProperty(value = "单位")
    private String unit;
    @ApiModelProperty(value = "持续周期")
    private Float continuousPeriod;
    @ApiModelProperty(value = "持续周期单位")
    private String continuousUnit;
    @ApiModelProperty(value = "下次执行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime nextExecutionTime;
    @ApiModelProperty(value = "责任人名称")
    @TableField(exist = false)
    private String responsiblePersonName;

    @ApiModelProperty(value = "责任人")
    private String responsiblePersonId;
    @TableField(exist = false)
    private List<String> ids;
    @ApiModelProperty(value = "是否删除(1：是 0：否)")
    @TableLogic
    private String isDelete;

}
